//
//  PaihangTableViewCell.m
//  A_HandHeldLOL
//
//  Created by Zhao YanBin on 16/1/23.
//  Copyright © 2016年 zhaoyanbin. All rights reserved.
//

#import "PaihangTableViewCell.h"

@implementation PaihangTableViewCell

- (void)dealloc
{
    [_shu release];
    [_touxiang release];
    [_name release];
    [_duanwei release];
    [_shengdian release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.shu = [[UILabel alloc] init];
        _shu.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_shu];
        
        self.touxiang = [[UIImageView alloc] init];
        _touxiang.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:_touxiang];
        
        self.name = [[UILabel alloc] init];
        _name.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_name];
        
        self.duanwei = [[UILabel alloc] init];
        _duanwei.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_duanwei];
        
        self.shengdian = [[UILabel alloc] init];
        _shengdian.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:_shengdian];
    }
    return  self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    _shu.frame = CGRectMake(10, 10, 20, 50);
    _touxiang.frame = CGRectMake(50, 0, 50, 50);
    _name.frame = CGRectMake(120, 10, 150, 30);
    _duanwei.frame = CGRectMake(250, 10, 70, 30);
    _shengdian.frame = CGRectMake(320, 10, 55, 30);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
